package com.cloudbroker.bcs.csvc.uf30.api.entity;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by xuyn15828 on 2016/3/21.
 *
 * 客户金币消费流水查询 resultset_5060203

 */
public class VirFundoutGoldCoinjourComResult implements Serializable{
    private String functionId;
    private Date begin_date;
    private Date end_date;
    private Date begin_time;
    private Date end_time;
    private String business_flag;
    private String tenacomp_id;
    private Integer page_no;
    private Integer page_size;

    public Date getBegin_date() {
        return begin_date;
    }

    public void setBegin_date(Date begin_date) {
        this.begin_date = begin_date;
    }

    public Date getBegin_time() {
        return begin_time;
    }

    public void setBegin_time(Date begin_time) {
        this.begin_time = begin_time;
    }

    public String getBusiness_flag() {
        return business_flag;
    }

    public void setBusiness_flag(String business_flag) {
        this.business_flag = business_flag;
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }

    public String getFunctionId() {
        return functionId;
    }

    public void setFunctionId(String functionId) {
        this.functionId = functionId;
    }

    public Integer getPage_no() {
        return page_no;
    }

    public void setPage_no(Integer page_no) {
        this.page_no = page_no;
    }

    public Integer getPage_size() {
        return page_size;
    }

    public void setPage_size(Integer page_size) {
        this.page_size = page_size;
    }

    public String getTenacomp_id() {
        return tenacomp_id;
    }

    public void setTenacomp_id(String tenacomp_id) {
        this.tenacomp_id = tenacomp_id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("begin_date", begin_date)
                .append("functionId", functionId)
                .append("end_date", end_date)
                .append("begin_time", begin_time)
                .append("end_time", end_time)
                .append("business_flag", business_flag)
                .append("tenacomp_id", tenacomp_id)
                .append("page_no", page_no)
                .append("page_size", page_size)
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;

        if (o == null || getClass() != o.getClass()) return false;

        VirFundoutGoldCoinjourComResult that = (VirFundoutGoldCoinjourComResult) o;

        return new EqualsBuilder()
                .append(functionId, that.functionId)
                .append(begin_date, that.begin_date)
                .append(end_date, that.end_date)
                .append(begin_time, that.begin_time)
                .append(end_time, that.end_time)
                .append(business_flag, that.business_flag)
                .append(tenacomp_id, that.tenacomp_id)
                .append(page_no, that.page_no)
                .append(page_size, that.page_size)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(functionId)
                .append(begin_date)
                .append(end_date)
                .append(begin_time)
                .append(end_time)
                .append(business_flag)
                .append(tenacomp_id)
                .append(page_no)
                .append(page_size)
                .toHashCode();
    }
}
